import request from "@/axios";

// 查询本公司及默认仓库
export const getcompanywarehouses = option =>
  request({
    url: "/api/company/getcompanywarehouses",
    method: "get",
    parans: option
  });

// 新增仓库
export const addwarehouse = option =>
  request({
    url: "/api/company/addwarehouse",
    method: "post",
    data: option
  });

// 批量新增仓库
export const addwarehousebatch = option =>
  request({
    url: "/api/company/addwarehousebatch",
    method: "post",
    data: option
  });

// 仓库列表
export const getcompanywarehousespage = option =>
  request({
    url: "/api/company/getcompanywarehousespage",
    method: "post",
    data: option
  });
